<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link href="/css/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/css/whir_common.css" rel="stylesheet" type="text/css" />
    <link href="/css/whir_grzx.css" rel="stylesheet" type="text/css" />
    <script src="/js/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="/js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
    <script src="/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="/js/common.js" type="text/javascript"></script>
    <script src="/js/layer/layer.js" type="text/javascript"></script>
    <title>搜索结果-</title>
</head>
<body>
<div id="header_top">
    <div class="page_header">
        <div class="header_style">
            <div class="clearfix">
                <a href="/#" class="logo_style"><img src="/images/logo.png" width="150px" /></a>
                <ul class="nav_list">
                    <li class="nav_link"><a href="/index.html" class="Channel_name"><i class="i icon_home"></i>首页</a></li>
                    <li class="nav_link Channel_link"> <a href="/javascript:" class="Channel_name"><i class="i icon_nav"></i>频道<i class="i i_arw2"></i></a>
                        <div class="Channel_nav_list">
                            <ul class=" clearfix">
                                <li class="Channel_color"><a href="/list_page.jsp"><i class="icon_TV"></i>电视剧</a></li>
                                <li class="Channel_color split_line"><a href="/#"><i class="icon_TV"></i>体育</a></li>
                                <li class="Channel_color split_line"><a href="/#"><i class="icon_TV"></i>电影</a></li>
                                <li class="Channel_color split_line"><a href="/#"><i class="icon_TV"></i>网络电影</a></li>
                                <li class="Channel_color split_line"><a href="/#"><i class="icon_TV"></i>综艺</a></li>
                                <li class="Channel_color split_line"><a href="/#"><i class="icon_TV"></i>动漫</a></li>
                                <li class="Channel_color split_line"><a href="/#"><i class="icon_TV"></i>纪录片</a></li>
                                <li class="Channel_color split_line"><a href="/#"><i class="icon_TV"></i>公开课</a></li>
                            </ul>
                        </div> </li>
                </ul>
                <div class="search_style">
                    <input name="" type="text" class="search" />
                    <button name="" type="button" class="button_submit" onclick="submit_btn()"><i class="icon_search"></i>搜索</button>
                </div>
            </div>
        </div>
    </div>
    <!--搜索样式-->
    <div class="page_style clearfix">
        <div class="clearfix">
            <div class="subbox">
                <!--左侧部分-->
                <div class="left180">
                    <div class="grtx">
                        <div class="grimg">
                            <img src="${user1.userHardUrl}" />
                        </div>
                        <div class="grname">
                            <a href="/#">${user1.userName}</a>
                        </div>
                    </div>
                    <ul class="menu1" >
                        <li class="on"><a onclick="return click_a('divOne_1')" style="cursor:pointer;"><em id="div_one">个人中心</em></a></li>
                        <div class="menubox">
                            <p><a href="/user3/in">个人资料</a></p>
                            <p><a href="/miss/modifyPassword">账户安全</a></p>
                            <p><a href="/user2/user">我的关注</a></p>
                        </div>
                    </ul>
                    <script language="javascript" type="text/javascript">
                        function click_a(divDisplay)
                        {
                            if(document.getElementById(divDisplay).style.display != "block")
                            {
                                document.getElementById(divDisplay).style.display = "block";
                            }
                            else
                            {
                                document.getElementById(divDisplay).style.display = "none";
                            }
                        }
                    </script>
                    <ul class="menu3">
                        <li><a href="/#"><em>视频管理</em></a></li>
                        <div class="menubox">
                            <p><a href="/个人中心-上传视频.html">上传视频</a></p>
                            <p><a href="/#">我的收藏</a></p>
                            <p><a href="/个人中心-观看记录.html">观看记录</a></p>
                        </div>
                    </ul>
                    <ul class="menu4">
                    </ul>
                </div>
                <!--右侧部分-->
                <div class="right840">
                    <div class="title6">
                        <div class="display">
                            <form action="/miss/modifyPassword"  id="formId" enctype="multipart/form-data" method="post">
                                <table width="840" height="400" align="center" cellspacing="0" cellpadding="0" class="tab">
                                    <tbody>
                                    <tr>
                                        <td colspan="2"><font class="f_black">您可以修改您的账户密码。下次登录请使用新密码</font></td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;&nbsp;&nbsp;<b>当前密码:</b></td>
                                        <td>&nbsp;&nbsp;&nbsp;<input type="password" class="input1" name="password" id="oldpassword" placeholder="请输入原密码"/></td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;&nbsp;&nbsp;<b>新密码:</b></td>
                                        <td>&nbsp;&nbsp;&nbsp;<input type="password" class="input1" name="newpassword"  id="password" placeholder="请输入新密码"/>&nbsp;&nbsp;&nbsp;<font class="f_black">6-20位，区分大小写，只能使用字母，数字</font></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>&nbsp;&nbsp;&nbsp;&nbsp;密码强度：&nbsp;&nbsp;弱&nbsp;&nbsp;<img src="/images/grzx/password.jpg" />&nbsp;&nbsp;强</td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;&nbsp;&nbsp;<b>确认新密码:</b></td>
                                        <td>&nbsp;&nbsp;&nbsp;<input type="password" class="input1" name="newpassword" id="newpassword"  placeholder="请再次输入新密码" />&nbsp;&nbsp;&nbsp;<font class="f_black">6-20位，区分大小写，只能使用字母，数字</font></td>
                                    </tr>
                                    <tr>
                                        <td>&nbsp;&nbsp;&nbsp;<b>验证码:</b></td>
                                        <td>&nbsp;&nbsp;&nbsp;<input type="text" class="input4" style="width:100px; height:35px;" />&nbsp;&nbsp;&nbsp;<a href="/#">看不清切换一下</a></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>&nbsp;&nbsp;&nbsp;<img src="/images/grzx/yzm.jpg" /></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td colspan="2">&nbsp;&nbsp;&nbsp;<input type="button" value="保存密码" class="btn1" onclick="xiugai()" />&nbsp;&nbsp;&nbsp;<input type="reset" value="取消" class="btn4" /></td>
                                    </tr>
                                    </tbody>
                                </table>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--底部样式-->
    <div class="footer_style">
        <div class="footer">
            <div class="copys copys-list clearfix">
                <a href="/#">网络文化经营许可证 京网文[2014]xxxxx-236号</a>
                <a href="/#">京卫网审[2013]第0209号 网络110报警服务</a>
                <a href="/#">药品服务许可证(京)-经营2222-0029</a>
                <a href="/#">节目制作经营许可证京字670号</a>
            </div>
            <div class="link_name">
                <a href="/#">关于我们</a>|
                <a href="/#">媒体合作</a>|
                <a href="/#">开放平台</a>|
                <a href="/#">广告服务</a>|
                <a href="/#">联系我们</a>|
                <a href="/#">工作机会</a>|
                <a href="/#">友情链接</a>
            </div>
            <div class="Copyright">
                Copyright &copy; 2004-2017 视频名称（xx.com）All rights reserved.
            </div>
            <div class="align clearfix">
                <a href="/#"><img src="/images/ghs.png" />京公网安备：xxxxxxxxxxxxxxxx号</a> &nbsp;&nbsp;&nbsp;
                <a href="/#"><img src="/images/xy.png" />中国互联网诚信联盟</a>
            </div>
        </div>
    </div>
    <!-- 代码 开始 -->
    <div class="go-top dn" id="go-top">
        <a href="/zhuce.html" target="_blank" class="feedback"></a>
        <a href="/javascript:;" class="go"></a>
    </div>

    <script src="/js/jquery.min.js"></script>
    <script type="text/javascript">
        
        function xiugai() {
            var oldpassword = document.getElementById("oldpassword");
            var password = document.getElementById("password");
            var newpassword = document.getElementById("newpassword");

                $.ajax({
                type: "POST",
                url: "/miss/modifyPassword",
                data: "isok=1&oldps="+oldpassword.value+"&ps="+password.value+"&newps="+newpassword.value,
                async: false,
                dataType:"Json",
                success: function(Json){
                    if(Json=="ok"){
                        alert("修改成功");
                        window.location.href="/login";
                    }else if(Json=="no"){
                        alert("修改失败");
                    }else if(Json=="oldpsno"){
                        alert("原密码错误");
                    }else if(Json=="ps"){
                        alert("密码与确认密码不一致");
                    }
                }
            });

        }
        
        var speed=50
        marquePic2.innerHTML=marquePic1.innerHTML
        function Marquee(){
            if(demo.scrollLeft>=marquePic1.scrollWidth){
                demo.scrollLeft=0
            }else{
                demo.scrollLeft++
            }
        }
        var MyMar=setInterval(Marquee,speed)
        demo.onmouseover=function() {clearInterval(MyMar)}
        demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
    </script>
    <script>
        /*********搜索*********/
        function submit_btn(){
            $(".search_style input[type$='text']").each(function(n){
                if($(this).val()=="")
                {

                    layer.alert("搜索框不能为空！",{
                        title: '提示框',
                        icon:0,
                    });
                    return false;
                }
                else{
                    location.href="/search_page.jsp";

                }
            })
        }
    </script>
</div>
</div>
</body>
</html>
